home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / rsyslog.preinst < prev    next >
Text File  |  2009-10-15  |  786b  |  26 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$1" = "install" -a -n "$2" ] ; then
  6.     [ -f /etc/logrotate.d/rsyslog.disabled ] && mv -f /etc/logrotate.d/rsyslog.disabled /etc/logrotate.d/rsyslog
  7. fi
  8.  
  9. # Automatically added by dh_installinit
  10. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  11.     if [ -e "/etc/init.d/rsyslog" ] && [ ! -L "/etc/init.d/rsyslog" ]; then
  12.         if [ "`md5sum \"/etc/init.d/rsyslog\" | sed -e \"s/ .*//\"`" != \
  13.              "`dpkg-query -W -f='${Conffiles}' rsyslog | sed -n -e \"\\\\' /etc/init.d/rsyslog '{s/ obsolete$//;s/.* //p}\"`" ]
  14.         then
  15.             echo "Obsolete conffile /etc/init.d/rsyslog has been modified by you, renaming to .dpkg-bak"
  16.             mv -f "/etc/init.d/rsyslog" "/etc/init.d/rsyslog.dpkg-bak"
  17.         else
  18.             rm -f "/etc/init.d/rsyslog"
  19.         fi
  20.     fi
  21. fi
  22. # End automatically added section
  23.  
  24.  
  25. exit 0
  26.